package accountmanager;

public enum AccountStatus {
    //定义了枚举的一个常量 ACTIVE，它有两个构造函数参数："激活" 和 "账号正常，无需操作"。
    ACTIVE("激活", "账号正常，无需操作"),
    DISABLED("禁用", "账号已禁用，需要管理员激活"),
    LOCKED("锁定", "账号已锁定，联系客服解锁");

    private String description;
    private String action;

    AccountStatus(String description, String action) {
        this.description = description;
        this.action = action;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void printStatus() {
        System.out.println("状态: " + this.description);
        System.out.println("建议操作: " + this.action);
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }
}
